package com.todo.strategy.online.infrastructure.repository;


import com.todo.strategy.online.infrastructure.entity.po.WantRelationPO;

import java.util.List;

/**
 * (WantRelation)表服务接口
 *
 * @author zhangwenxiang
 * @since 2024-03-04 21:10:04
 */
public interface WantRelationRepository {

    /**
     * 根据主键id更新我想去关联信息
     *
     * @param wantRelationPO
     * @return
     */
    Boolean updateWantRelationPOById(WantRelationPO wantRelationPO);

    /**
     * 根据主键id删除我想去关联信息
     *
     * @param id
     * @return
     */
    Boolean removeWantRelationPOById(Long id);

    /**
     * 根据主键id查询我想去关联信息
     *
     * @param id
     * @return
     */
    WantRelationPO queryWantRelationPOById(Long id);

    /**
     * 新增我想去关联信息
     *
     * @param wantRelationPO
     * @return
     */
    Boolean insertWantRelationPO(WantRelationPO wantRelationPO);

    /**
     * 根据我想去集合id查询关联列表
     *
     * @param wantId
     * @return
     */
    List<WantRelationPO> queryWantRelationPOByContentId(Long wantId);

    /**
     * 根据我想去id和id列表 删除数据
     *
     * @param wantId
     * @param idList
     * @return
     */
    Boolean removeWantRelationByIdList(Long wantId, List<Long> idList);
}
